package com.castle.fortress.admin.cms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
/**
 * cms通用配置表 实体类
 *
 * @author castle
 * @since 2022-02-18
 */
@Data
@ApiModel(value = "cmsConfig对象", description = "cms通用配置表")
public class CmsConfigDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "配置名称")
	@JsonProperty("name")
	private String name;
	@ApiModelProperty(value = "标签名称")
	@JsonProperty("tagName")
	private String tagName;
	@ApiModelProperty(value = "选值类型")
	@JsonProperty("valueType")
	private String valueType;
	@ApiModelProperty(value = "选值范围")
	@JsonProperty("tagValues")
	private String tagValues;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "修改人")
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "修改时间")
	@JsonProperty("updateTime")
	private Date updateTime;
	@ApiModelProperty(value = "标签分组")
	@JsonProperty("tagGroup")
	private String tagGroup;
	@ApiModelProperty(value = "排序")
	@JsonProperty("sort")
	private Integer sort;

}
